package com.jiang.lianxi;

import java.util.Scanner;

public class ShuZhiCaiFen {
    public static void main(String[] args) {
        //键盘录入一个三位数，分别输出个位，十位，百位
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个整数");
        int i = sc.nextInt();
        int ge = i % 10;
        int shi = i / 10 % 10;
        int bai = i / 100 % 10;
        System.out.println("该整数的个位为" + ge);
        System.out.println("该整数的十位为" + shi);
        System.out.println("该整数的百位为" + bai);
    }
}
